﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Dissemination.MVC.Models.ChangePasswordModel>" %>
<%@ Import Namespace="Resources" %>

<asp:Content ID="changePasswordTitle" ContentPlaceHolderID="TitleContent" runat="server">
    <asp:Literal runat="server" Text="<%$ Resources:Literals, ApplicationTitle%>" /> &middot; <asp:Literal runat="server" Text="<%$ Resources:Literals, ChangePasswordTitle%>" />
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="BreadcrumbContent" runat="server">
    <asp:Literal runat="server" Text="<%$ Resources:Literals, ChangePasswordTitle%>" />
</asp:Content>

<asp:Content ID="changePasswordContent" ContentPlaceHolderID="MainContent" runat="server">
    <h1><asp:Literal runat="server" Text="<%$ Resources:Literals, ChangePasswordTitle%>" /></h1>
    <p class="explanation">
        <%=String.Format(Literals.ChangePasswordSubtitle, Html.Encode(ViewData["PasswordLength"]))  %>
    </p>

    <% using (Html.BeginForm()) { %>
        <%= Html.ValidationSummary(true, Literals.PasswordChangeError)%>
            <fieldset id="change_pw">

                <div class="limpia"></div>

                <div class="editor-label">
                    <%= Html.LabelFor(m => m.OldPassword) %>
                    <%= Html.PasswordFor(m => m.OldPassword) %>
                    <%= Html.ValidationMessageFor(m => m.OldPassword) %>
                </div>

                <div class="limpia"></div>

                <div class="editor-label">
                    <%= Html.LabelFor(m => m.NewPassword) %>
                    <%= Html.PasswordFor(m => m.NewPassword) %>
                    <%= Html.ValidationMessageFor(m => m.NewPassword) %>
                </div>

                <div class="limpia"></div>

                <div class="editor-label">
                    <%= Html.LabelFor(m => m.ConfirmPassword) %>
                       <%= Html.PasswordFor(m => m.ConfirmPassword) %>
                    <%= Html.ValidationMessageFor(m => m.ConfirmPassword) %>
                </div>
                <div class="limpia"></div>
                <p class="enlaces">
                    <a href="#" onclick="document.forms[0].submit()"><asp:Literal runat="server" Text="<%$ Resources:Literals, ChangePasswordTitle%>" /></a>
                    <a href="#" onclick="history.back()"><asp:Literal runat="server" Text="<%$ Resources:Literals, CancelLiteral%>" /></a>
                </p>
            </fieldset>
    <% } %>
</asp:Content>
